/**
 * jims
 */
package com.jims.master.modules.nurse.entity;

import com.jims.master.modules.doctor.entity.PatMasterIndex;
import com.jims.master.modules.doctor.entity.PatVisit;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jims.master.common.persistence.DataEntity;

/**
 * 新生儿记录Entity
 * @author 赵宁
 * @version 2017-04-10
 */
public class NewbornRec extends DataEntity<NewbornRec> {
	
	private static final long serialVersionUID = 1L;
	private String motherInpNo;//母亲住院号
	private String babyInpNo;//婴儿住院号
	private String name;		// 婴儿姓名
	private String sex;		// 婴儿性别
	private Date dateOfBirth;		// 出生日期
	private String birthPlaceProvince;		// 出生地（省）
	private String birthPlaceCity;		// 出生地（市）
	private String birthPlaceCounty;		// 出生地（县）
	private String birthPlaceTownship;		// 出生地（乡）
	private String gestationWeek;		// 出生孕周
	private String healthStatus;		// 健康状况
	private String weight;		// 体重
	private String height;		// 高度
	private String nameOfMother;		// 母亲姓名
	private String ageOfMother;		// 母亲年龄
	private String citizenshipOfMother;		// 母亲国籍
	private String nationOfMother;		// 母亲民族
	private String idNoOfMother;		// 母亲身份证
	private String nameOfFather;		// 父亲姓名
	private String ageOfFather;		// 父亲年龄
	private String citizenshipOfFather;		// 父亲国籍
	private String nationOfFather;		// 父亲民族
	private String idNoOfFather;		// 父亲身份证
	private String homeAddress;		// 家庭地址
	private String typeOfPlace;		// 出生地分类
	private String nameOfFacility;		// 接生机构名称
	private String birthCertifiaationNo;		// 出生证号
	private Date dateOfIssue;		// 签发日期
	private String patientId;		// 婴儿ID
	private String patientIdOfMother;		// 母亲ID
	private String operator;		// operator
	private Date enterDate;		// enter_date
	private String birthResult;		// 分娩结果
	private String birthQuomodo;		// 分娩方式
	private String vistIdOfMother;		// 母亲住院ID
	private String drug1;		// 疫苗1
	private String drug2;		// 疫苗2
	private Date bearingDate;		// 分娩时间
	private String parityNo;		// 胎次
	private String weightBirth;		// 出生体重
	private String weightInp;		// 入院体重
	private String newpatientId;		// 婴儿新入院ID
	private String newvisitId;		// 新生儿住院ID
	private String wardCode;//护理单元
    private BedRec bedRec;
	private PatVisit patVisit;
	private PatMasterIndex patMasterIndex;
    private String bedNo;//母亲床号
	private String bedLabel;//母亲床标号
	private String newbornFlag;//是否新生儿-扩展字段

	public NewbornRec() {
		super();
	}

	public NewbornRec(String id){
		super(id);
	}

    public String getBedNo() {
        return bedNo;
    }

    public void setBedNo(String bedNo) {
        this.bedNo = bedNo;
    }

	@Length(min=0, max=20, message="婴儿姓名长度必须介于 0 和 20 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=1, message="婴儿性别长度必须介于 0 和 1 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getDateOfBirth() {
		return dateOfBirth;
	}

	public void setDateOfBirth(Date dateOfBirth) {
		this.dateOfBirth = dateOfBirth;
	}
	
	@Length(min=0, max=20, message="出生地（省）长度必须介于 0 和 20 之间")
	public String getBirthPlaceProvince() {
		return birthPlaceProvince;
	}

	public void setBirthPlaceProvince(String birthPlaceProvince) {
		this.birthPlaceProvince = birthPlaceProvince;
	}
	
	@Length(min=0, max=20, message="出生地（市）长度必须介于 0 和 20 之间")
	public String getBirthPlaceCity() {
		return birthPlaceCity;
	}

	public void setBirthPlaceCity(String birthPlaceCity) {
		this.birthPlaceCity = birthPlaceCity;
	}
	
	@Length(min=0, max=20, message="出生地（县）长度必须介于 0 和 20 之间")
	public String getBirthPlaceCounty() {
		return birthPlaceCounty;
	}

	public void setBirthPlaceCounty(String birthPlaceCounty) {
		this.birthPlaceCounty = birthPlaceCounty;
	}
	
	@Length(min=0, max=20, message="出生地（乡）长度必须介于 0 和 20 之间")
	public String getBirthPlaceTownship() {
		return birthPlaceTownship;
	}

	public void setBirthPlaceTownship(String birthPlaceTownship) {
		this.birthPlaceTownship = birthPlaceTownship;
	}
	
	@Length(min=0, max=10, message="出生孕周长度必须介于 0 和 10 之间")
	public String getGestationWeek() {
		return gestationWeek;
	}

	public void setGestationWeek(String gestationWeek) {
		this.gestationWeek = gestationWeek;
	}
	
	@Length(min=0, max=5, message="健康状况长度必须介于 0 和 5 之间")
	public String getHealthStatus() {
		return healthStatus;
	}

	public void setHealthStatus(String healthStatus) {
		this.healthStatus = healthStatus;
	}
	
	@Length(min=0, max=5, message="体重长度必须介于 0 和 5 之间")
	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}
	
	@Length(min=0, max=5, message="高度长度必须介于 0 和 5 之间")
	public String getHeight() {
		return height;
	}

	public void setHeight(String height) {
		this.height = height;
	}
	
	@Length(min=0, max=20, message="母亲姓名长度必须介于 0 和 20 之间")
	public String getNameOfMother() {
		return nameOfMother;
	}

	public void setNameOfMother(String nameOfMother) {
		this.nameOfMother = nameOfMother;
	}
	
	@Length(min=0, max=10, message="母亲年龄长度必须介于 0 和 10 之间")
	public String getAgeOfMother() {
		return ageOfMother;
	}

	public void setAgeOfMother(String ageOfMother) {
		this.ageOfMother = ageOfMother;
	}
	
	@Length(min=0, max=3, message="母亲国籍长度必须介于 0 和 3 之间")
	public String getCitizenshipOfMother() {
		return citizenshipOfMother;
	}

	public void setCitizenshipOfMother(String citizenshipOfMother) {
		this.citizenshipOfMother = citizenshipOfMother;
	}
	
	@Length(min=0, max=3, message="母亲民族长度必须介于 0 和 3 之间")
	public String getNationOfMother() {
		return nationOfMother;
	}

	public void setNationOfMother(String nationOfMother) {
		this.nationOfMother = nationOfMother;
	}
	
	@Length(min=0, max=20, message="母亲身份证长度必须介于 0 和 20 之间")
	public String getIdNoOfMother() {
		return idNoOfMother;
	}

	public void setIdNoOfMother(String idNoOfMother) {
		this.idNoOfMother = idNoOfMother;
	}
	
	@Length(min=0, max=20, message="父亲姓名长度必须介于 0 和 20 之间")
	public String getNameOfFather() {
		return nameOfFather;
	}

	public void setNameOfFather(String nameOfFather) {
		this.nameOfFather = nameOfFather;
	}
	
	@Length(min=0, max=10, message="父亲年龄长度必须介于 0 和 10 之间")
	public String getAgeOfFather() {
		return ageOfFather;
	}

	public void setAgeOfFather(String ageOfFather) {
		this.ageOfFather = ageOfFather;
	}
	
	@Length(min=0, max=3, message="父亲国籍长度必须介于 0 和 3 之间")
	public String getCitizenshipOfFather() {
		return citizenshipOfFather;
	}

	public void setCitizenshipOfFather(String citizenshipOfFather) {
		this.citizenshipOfFather = citizenshipOfFather;
	}
	
	@Length(min=0, max=3, message="父亲民族长度必须介于 0 和 3 之间")
	public String getNationOfFather() {
		return nationOfFather;
	}

	public void setNationOfFather(String nationOfFather) {
		this.nationOfFather = nationOfFather;
	}
	
	@Length(min=0, max=20, message="父亲身份证长度必须介于 0 和 20 之间")
	public String getIdNoOfFather() {
		return idNoOfFather;
	}

	public void setIdNoOfFather(String idNoOfFather) {
		this.idNoOfFather = idNoOfFather;
	}
	
	@Length(min=0, max=50, message="家庭地址长度必须介于 0 和 50 之间")
	public String getHomeAddress() {
		return homeAddress;
	}

	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}
	
	@Length(min=0, max=20, message="出生地分类长度必须介于 0 和 20 之间")
	public String getTypeOfPlace() {
		return typeOfPlace;
	}

	public void setTypeOfPlace(String typeOfPlace) {
		this.typeOfPlace = typeOfPlace;
	}
	
	@Length(min=0, max=20, message="接生机构名称长度必须介于 0 和 20 之间")
	public String getNameOfFacility() {
		return nameOfFacility;
	}

	public void setNameOfFacility(String nameOfFacility) {
		this.nameOfFacility = nameOfFacility;
	}
	
	@Length(min=0, max=20, message="出生证号长度必须介于 0 和 20 之间")
	public String getBirthCertifiaationNo() {
		return birthCertifiaationNo;
	}

	public void setBirthCertifiaationNo(String birthCertifiaationNo) {
		this.birthCertifiaationNo = birthCertifiaationNo;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getDateOfIssue() {
		return dateOfIssue;
	}

	public void setDateOfIssue(Date dateOfIssue) {
		this.dateOfIssue = dateOfIssue;
	}
	
	@Length(min=0, max=64, message="婴儿ID长度必须介于 0 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=0, max=64, message="母亲ID长度必须介于 0 和 64 之间")
	public String getPatientIdOfMother() {
		return patientIdOfMother;
	}

	public void setPatientIdOfMother(String patientIdOfMother) {
		this.patientIdOfMother = patientIdOfMother;
	}
	
	@Length(min=0, max=8, message="operator长度必须介于 0 和 8 之间")
	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEnterDate() {
		return enterDate;
	}

	public void setEnterDate(Date enterDate) {
		this.enterDate = enterDate;
	}
	
	@Length(min=0, max=1, message="birth_result长度必须介于 0 和 1 之间")
	public String getBirthResult() {
		return birthResult;
	}

	public void setBirthResult(String birthResult) {
		this.birthResult = birthResult;
	}
	
	@Length(min=0, max=1, message="birth_quomodo长度必须介于 0 和 1 之间")
	public String getBirthQuomodo() {
		return birthQuomodo;
	}

	public void setBirthQuomodo(String birthQuomodo) {
		this.birthQuomodo = birthQuomodo;
	}
	
	@Length(min=0, max=64, message="母亲住院ID长度必须介于 0 和 64 之间")
	public String getVistIdOfMother() {
		return vistIdOfMother;
	}

	public void setVistIdOfMother(String vistIdOfMother) {
		this.vistIdOfMother = vistIdOfMother;
	}
	
	@Length(min=0, max=20, message="疫苗1长度必须介于 0 和 20 之间")
	public String getDrug1() {
		return drug1;
	}

	public void setDrug1(String drug1) {
		this.drug1 = drug1;
	}
	
	@Length(min=0, max=20, message="疫苗2长度必须介于 0 和 20 之间")
	public String getDrug2() {
		return drug2;
	}

	public void setDrug2(String drug2) {
		this.drug2 = drug2;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBearingDate() {
		return bearingDate;
	}

	public void setBearingDate(Date bearingDate) {
		this.bearingDate = bearingDate;
	}
	
	@Length(min=0, max=2, message="胎次长度必须介于 0 和 2 之间")
	public String getParityNo() {
		return parityNo;
	}

	public void setParityNo(String parityNo) {
		this.parityNo = parityNo;
	}
	
	@Length(min=0, max=4, message="出生体重长度必须介于 0 和 4 之间")
	public String getWeightBirth() {
		return weightBirth;
	}

	public void setWeightBirth(String weightBirth) {
		this.weightBirth = weightBirth;
	}
	
	@Length(min=0, max=4, message="入院体重长度必须介于 0 和 4 之间")
	public String getWeightInp() {
		return weightInp;
	}

	public void setWeightInp(String weightInp) {
		this.weightInp = weightInp;
	}
	
	@Length(min=0, max=64, message="婴儿新入院ID长度必须介于 0 和 64 之间")
	public String getNewpatientId() {
		return newpatientId;
	}

	public void setNewpatientId(String newpatientId) {
		this.newpatientId = newpatientId;
	}
	
	@Length(min=0, max=64, message="新生儿住院ID长度必须介于 0 和 64 之间")
	public String getNewvisitId() {
		return newvisitId;
	}

	public void setNewvisitId(String newvisitId) {
		this.newvisitId = newvisitId;
	}

	public String getBabyInpNo() {
		return babyInpNo;
	}

	public void setBabyInpNo(String babyInpNo) {
		this.babyInpNo = babyInpNo;
	}

	public String getMotherInpNo() {
		return motherInpNo;
	}

	public void setMotherInpNo(String motherInpNo) {
		this.motherInpNo = motherInpNo;
	}

	public PatVisit getPatVisit() {
		return patVisit;
	}

	public void setPatVisit(PatVisit patVisit) {
		this.patVisit = patVisit;
	}

	public PatMasterIndex getPatMasterIndex() {
		return patMasterIndex;
	}

	public void setPatMasterIndex(PatMasterIndex patMasterIndex) {
		this.patMasterIndex = patMasterIndex;
	}

	public BedRec getBedRec() {
		return bedRec;
	}

	public void setBedRec(BedRec bedRec) {
		this.bedRec = bedRec;
	}

	public String getWardCode() {
		return wardCode;
	}

	public void setWardCode(String wardCode) {
		this.wardCode = wardCode;
	}

	public String getNewbornFlag() {
		return newbornFlag;
	}

	public void setNewbornFlag(String newbornFlag) {
		this.newbornFlag = newbornFlag;
	}

	public String getBedLabel() {
		return bedLabel;
	}

	public void setBedLabel(String bedLabel) {
		this.bedLabel = bedLabel;
	}
}